package com.jokins.admin.ios.articles.service.impl;

import com.jokins.admin.ios.articles.actioncontext.GetBookArticlesListDoc;
import com.jokins.admin.ios.articles.param.BookArticlesParam;
import com.jokins.admin.ios.articles.param.SaveBookArticlesParam;
import com.jokins.admin.ios.articles.service.BookArticlesService;
import com.jokins.admin.ios.articles.vo.BookArticlesListVo;
import com.jokins.common.actions.action.ActionContext;
import com.jokins.common.actions.util.ActionDispatcher;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 〈〉<br>
 *
 * @author Mr.Wang
 * @create 2025/2/6
 */
@Slf4j
@Service
public class BookArticlesServiceImpl implements BookArticlesService {

    @Override
    public List<BookArticlesListVo> getArticlesList(BookArticlesParam param) {
        GetBookArticlesListDoc doc=new GetBookArticlesListDoc(param);
        ActionDispatcher.execute(doc);
        return (List<BookArticlesListVo>) doc.getResultValue(ActionContext.RESULT_DOC_KEY);
    }

    @Override
    public void saveArticles(SaveBookArticlesParam param) {

    }
}